# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-color-calc
pkgver=1.074
pkgrel=8
pkgdesc="Perl/CPAN Module Color::Calc : Simple calculations with RGB colors"
arch=('any')
url="https://search.cpan.org/dist/Color-Calc"
license=("GPL" "PerlArtistic")
depends=("perl-params-validate" "perl-graphics-colornames-www" "perl-graphics-colornames")
makedepends=("perl-params-validate" "perl-graphics-colornames-www" "perl-graphics-colornames")
source=("https://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/Color-Calc-$pkgver.tar.gz")
md5sums=('0b0ba7d5b5cab45f91797c900b1838f1')

build() {
  cd "$srcdir"/Color-Calc-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/Color-Calc-$pkgver
  make pure_install doc_install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
